<style type="text/css">
	.nav-tabs-dialog li{
		width:80px;
	} 
	.nav-tabs-dialog li.active a {
		text-align:center;
		background:#3a2313;
	}
</style>
<div class="row widget" style="margin-top:5px;">		
	<ul class="nav nav-tabs nav-tabs-dialog">
		<li class="active"><a href="#shuffle" data-toggle="tab">ล่าสุด</a></li>
		<li class=""><a href="#ranking" data-toggle="tab"></a></li>              
	</ul>
	<div class="tab-content">
		<div class="tab-pane fade active in" id="shuffle">
			<?php if (count($data) > 0) { ?>
				<ul class="unstyled thumb-list">
				<?php for ($i=0; $i<count($data); $i++) {?>
					<li class="underline">
						<a href="<?php print base_url() . $data[$i]['CAF_NAME']; ?>" target="_blank">
							<img class="thumb thumbnail" src="<?php print $data[$i]['CAF_IMG_L_FILENAME']; ?>" width="40" height="40" />
							<h5><?php print $data[$i]['CAF_TITLE']?></h5>
						</a>				
					</li>
				<?php } ?>
				</ul>
			<?php } ?>
		</div>
		<div class="tab-pane fade" id="ranking">
			<p>Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.</p>
		</div>
	</div>	
</div>
